Fix hardcoded GPS time->UTC offset in Skytraq.
authorrobertlipe@gmail.com <robertlipe@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 27 Jun 2012 14:14:40 +0000 (14:14 +0000)
committerrobertlipe@gmail.com <robertlipe@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 27 Jun 2012 14:14:40 +0000 (14:14 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4184 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/skytraq.c

index 6edeb1469e31e097578930a147550493cbc29a76..1f9e30a80f80b54240ccfb4e1d5b1c52ef487990 100644 (file)
@@ -553,9 +553,9 @@ static time_t
 gpstime_to_timet(int week, int sec)
 {
   /* TODO: make leap second compensation more general
-   * (the windows software seems to correct by 13).
+   * (the windows software seems to correct by a magic amount).
    */
-  return (315964800 + (week+1024)*7*SECONDS_PER_DAY + sec - 13);
+  return (315964800 + (week+1024)*7*SECONDS_PER_DAY + sec - 16);
 }
 
 static void